package hfxy.dzx.u21ex;

import java.io.InputStream;
import java.util.List;

import junit.framework.TestCase;

public class ParseTest3 extends TestCase {

	public void testSAX() throws Throwable{
		SaxParseService sax = new SaxParseService();
		InputStream input = this.getClass().getResourceAsStream("book.xml");
		List<Book> books = sax.getBooks(input);
		for(Book book : books){
			System.out.println(book.toString());
		}
	}
	
	public void tt() {
		String aa="[{\"no\":\"000433\",\"name\":\"李祎\"},{\"no\":\"000422\",\"name\":\"胡敏\"}]";
	}


}
